export default [{
        path: '/',
        name: 'home',
        component: () => import('@/views/main/index.vue')
    },
    {
        path: '/pins/:id',
        name: 'pins',
        component: () => import('@/views/pins/index.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login-register/login/index.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('@/views/login-register/register/index.vue')
    },
    {
        path: '/profile',
        name: 'profile',
        component: () => import('@/views/profile/index.vue'),
        // 标记当用户登录后才能访问这个页面
        meta: {
            user: true
        }
    },
    {
        path: '/member',
        name: 'member',
        component: () => import('@/views/member/index.vue'),
        meta: {
            user: true // 需要登录才可以访问
        }
    }

]